package com.bj.jiufu.bsns.user.controller;

import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.bj.jiufu.base.Header;
import com.bj.jiufu.base.RespMsg;
import com.bj.jiufu.bsns.user.entity.Person;
import com.bj.jiufu.bsns.user.entity.TJincaiUserDetail;
import com.bj.jiufu.bsns.user.service.UserService;


/**
 *
 */
@RequestMapping(value = "/user")
@Controller
public class UserController {
	
	/** 日志实例 */
	private static final Logger logger = Logger.getLogger(UserController.class);
	
	@Autowired
	private UserService userService;
	
    @ResponseBody
    @RequestMapping(value = "/login", method = {RequestMethod.GET})
	public RespMsg login(HttpServletRequest req)
	{
    	RespMsg respMsg = new RespMsg();
    	TJincaiUserDetail tJincaiUserDetail=userService.login();
    	Header header = new Header();
    	header.setAccessToken("123");
    	respMsg.setHeader(header);
    	respMsg.setBody(tJincaiUserDetail);
		return respMsg;
	}
}